
package com.shop.cloud.mall.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.NotNull;
import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 店铺门店
 *
 * @author
 * @date 2023-05-18 10:05:56
 */
@Data
@TableName("shop_store")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "店铺门店")
public class ShopStore extends Model<ShopStore> {
    private static final long serialVersionUID=1L;

    /**
     * PK
     */
    @TableId(type = IdType.ASSIGN_ID)
    @NotNull(message = "PK不能为空")
    @Schema(description = "PK")
    private String id;
    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    /**
     * 逻辑删除标记（0：显示；1：隐藏）
     */
    @NotNull(message = "逻辑删除标记（0：显示；1：隐藏）不能为空")
    @Schema(description = "逻辑删除标记（0：显示；1：隐藏）")
    private String delFlag;
    /**
     * 所属租户
     */
    @NotNull(message = "所属租户不能为空")
    @Schema(description = "所属租户")
    private String tenantId;
    /**
     * 店铺Id
     */
    @NotNull(message = "店铺Id不能为空")
    @Schema(description = "店铺Id")
    private String shopId;
    /**
     * 名字
     */
    @NotNull(message = "名字不能为空")
    @Schema(description = "名字")
    private String name;
    /**
     * 电话号码
     */
    @NotNull(message = "电话号码不能为空")
    @Schema(description = "电话号码")
    private String phone;
    /**
     * 营业时间
     */
    @NotNull(message = "营业时间不能为空")
    @Schema(description = "营业时间")
    private String businessHours;
    /**
     * 所在国家
     */
    @Schema(description = "所在国家")
    private String country;
    /**
     * 所在省份
     */
    @Schema(description = "所在省份")
    private String province;
    /**
     * 所在城市
     */
    @Schema(description = "所在城市")
    private String city;
    /**
     * 详细地址
     */
    @Schema(description = "详细地址")
    private String address;
    /**
     * 经度
     */
    @Schema(description = "经度")
    private String longitude;
    /**
     * 纬度
     */
    @Schema(description = "纬度")
    private String latitude;
    /**
     * 图片
     */
    @Schema(description = "图片")
    private String imgUrl;
	/**
	 * 距离
	 */
	@TableField(exist = false)
	private String juli;

}
